package org.example.managere.dto.feibiao;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 知识图谱实体关系网络表 DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AmKnowledgeRelationDto implements Serializable {
    @NotEmpty(message = "关系ID不能为空")
    @Size(max = 10, message = "关系ID长度不能超过10")
    private String relationshipId;

    @NotEmpty(message = "起始实体ID不能为空")
    @Size(max = 10, message = "实体ID长度不能超过10")
    private String entityId1;

    @NotEmpty(message = "目标实体ID不能为空")
    @Size(max = 10, message = "实体ID长度不能超过10")
    private String entityId2;

    @NotEmpty(message = "关系类型不能为空")
    @Size(max = 50, message = "关系类型长度不能超过50")
    private String relationshipType;

    @NotEmpty(message = "关系说明不能为空")
    private String relationshipDescription;

    @NotNull(message = "更新时间不能为空")
    private Date relationUpdateTime;
} 